import { Module } from '@nestjs/common'
import { AppController } from './app.controller'
import { AppService } from './app.service'
import { DatabaseModule } from './common/database/database.module'
// import { TestModule } from './test/test.module';
import { extname, join } from 'path'
// import { ServeStaticModule } from '@nestjs/serve-static'
import { CrudModule } from './crud/crud.module'
import { UserModule } from './user/user.module'
import { PostModule } from './post/post.module'
import { UploadModule } from './upload/upload.module'
import { CommitModule } from './commit/commit.module';
import { TopicModule } from './topic/topic.module';

import { SocketModule } from './socket/socket.module';
@Module({
  imports: [
    DatabaseModule,
    // CrudModule,
    UserModule,
    PostModule,
    UploadModule,
    CommitModule,
    TopicModule,
    SocketModule,

  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
